<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script>
        var history =window.history;
        //后退
        var back  =history.back;
        //前进
        var forward =history.forward;
        //进入浏览记录的某个页面
        var go =history.go
        go(-1)
    </script>
</body>
</html>